package com.hk.cafe.control;

import com.hk.action.Action;
import com.hk.action.ActionFactory;
import com.hk.photo.PhotoListAction;
import com.hk.reply.ReplyInsAction;
import com.hk.reply.ReplyListAction;

public class ReplyActionFactory implements ActionFactory{

	
private static ReplyActionFactory factory;
	
	public static ReplyActionFactory getInstance(){
		if(factory==null){
			factory=new ReplyActionFactory();
		}
		return factory;
	}
		
	public Action getAction(String command){
		Action action=null;
			if(command.equalsIgnoreCase("rlist")){
			action=new ReplyListAction();
			
		}else if(command.equalsIgnoreCase("rwrite")){
			action=new ReplyInsAction();
		}
			return action;
}
}
